package com.tcfvic.client.pojos;
// Generated 29/03/2010 9:10:02 PM by Hibernate Tools 3.1.0.beta4

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * Qualification generated by hbm2java
 */
@Entity
@Table(name="qualification"
    
, uniqueConstraints = {  }
)

public class Qualification  implements java.io.Serializable {


    // Fields    

     private int id;
     private String name;
     private Set<Personcourse> personcourses = new HashSet<Personcourse>(0);


    // Constructors

    /** default constructor */
    public Qualification() {
    }

	/** minimal constructor */
    public Qualification(int id) {
        this.id = id;
    }
    
    /** full constructor */
    public Qualification(int id, String name, Set<Personcourse> personcourses) {
        this.id = id;
        this.name = name;
        this.personcourses = personcourses;
    }
    

   
    // Property accessors
    @Id
    @Column(name="id", unique=true, nullable=false, insertable=true, updatable=true)
@GeneratedValue(strategy=GenerationType.AUTO)

    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    @Column(name="name", unique=false, nullable=true, insertable=true, updatable=true, length=450)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.LAZY, mappedBy="qualification")

    public Set<Personcourse> getPersoncourses() {
        return this.personcourses;
    }
    
    public void setPersoncourses(Set<Personcourse> personcourses) {
        this.personcourses = personcourses;
    }
   








}
